//
//  VerRecordTCell.m
//  ScalperMerchant
//
//  Created by 王云 on 2017/10/11.
//  Copyright © 2017年 WY. All rights reserved.
//

#import "VerRecordTCell.h"

@implementation VerRecordTCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}
- (void)setDic:(NSDictionary *)dic{
    _dic = dic;
    
    _prcieL.text = @"";
    _userName.text = @"暂无信息";
    
    _couponL.text = [NSString stringWithFormat:@"%@",[_dic hw_safeObjectForKey:@"code"]];
    NSInteger writeoff_status = [[_dic hw_safeObjectForKey:@"writeoff_status"] integerValue];
    if (writeoff_status == 0) {
        _badDetailL.text = @"核销失败";
    }else if (writeoff_status == 2){
        _badDetailL.text = @"劵码不存在";
    }else if (writeoff_status == 3){
        _badDetailL.text = @"劵码已使用";
    }else if (writeoff_status == 4){
        _badDetailL.text = @"劵码未到核销日期或已超过核销日期";
    }
    
}




@end
